package com.yuhao.init.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName banner
 */
@TableName(value ="banner")
@Data
@ToString
public class Banner implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID, value = "_id")
    private Long _id;

    /**
     * 外部小程序id
     */
    private Long appid;

    /**
     * 跳转方式，默认：self，外站：miniProgram
     */
    private String target;

    /**
     * 缩略图
     */
    private String picurl;

    /**
     * 排序字段
     */
    private Integer sort;

    /**
     * 跳转链接地址

     */
    private String url;

    /**
     * 
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}